package org.pnp.vo;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Stock {
	private String stockCode;
	private String stockName;
	
	private double todayOpeningPrice;
	private double YTDClosingPrice;
	private double currentPrice;
	
	private double todayHighestPrice;
	private double todayLowestPrice;
	
	private double competedBuyPrice;
	private double competedSalePrice;
	
	private String tradeQuantity;
	private String tradeAmount;
	
	private double buy1Quantity;
	private double buy1Price;
	private double buy2Quantity;
	private double buy2Price;
	private double buy3Quantity;
	private double buy3Price;
	private double buy4Quantity;
	private double buy4Price;
	private double buy5Quantity;
	private double buy5Price;
	
	private double sale1Quantity;
	private double sale1Price;
	private double sale2Quantity;
	private double sale2Price;
	private double sale3Quantity;
	private double sale3Price;
	private double sale4Quantity;
	private double sale4Price;
	private double sale5Quantity;
	private double sale5Price;
	
	private String date;
	private String time;
	private Date tradeDate;
	
	
   public String getStockCode() {
		return stockCode;
	}


	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}


	public String getStockName() {
		return stockName;
	}


	public void setStockName(String stockName) {
		this.stockName = stockName;
	}


	public double getTodayOpeningPrice() {
		return todayOpeningPrice;
	}


	public void setTodayOpeningPrice(double todayOpeningPrice) {
		this.todayOpeningPrice = todayOpeningPrice;
	}


	public double getYTDClosingPrice() {
		return YTDClosingPrice;
	}


	public void setYTDClosingPrice(double yTDClosingPrice) {
		YTDClosingPrice = yTDClosingPrice;
	}


	public double getCurrentPrice() {
		return currentPrice;
	}


	public void setCurrentPrice(double currentPrice) {
		this.currentPrice = currentPrice;
	}


	public double getTodayHighestPrice() {
		return todayHighestPrice;
	}


	public void setTodayHighestPrice(double todayHighestPrice) {
		this.todayHighestPrice = todayHighestPrice;
	}


	public double getTodayLowestPrice() {
		return todayLowestPrice;
	}


	public void setTodayLowestPrice(double todayLowestPrice) {
		this.todayLowestPrice = todayLowestPrice;
	}


	public double getCompetedBuyPrice() {
		return competedBuyPrice;
	}


	public void setCompetedBuyPrice(double competedBuyPrice) {
		this.competedBuyPrice = competedBuyPrice;
	}


	public double getCompetedSalePrice() {
		return competedSalePrice;
	}


	public void setCompetedSalePrice(double competedSalePrice) {
		this.competedSalePrice = competedSalePrice;
	}


	public String getTradeQuantity() {
		return tradeQuantity;
	}


	public void setTradeQuantity(String tradeQuantity) {
		this.tradeQuantity = tradeQuantity;
	}


	public String getTradeAmount() {
		return tradeAmount;
	}


	public void setTradeAmount(String tradeAmount) {
		this.tradeAmount = tradeAmount;
	}


	public double getBuy1Quantity() {
		return buy1Quantity;
	}


	public void setBuy1Quantity(double buy1Quantity) {
		this.buy1Quantity = buy1Quantity;
	}


	public double getBuy1Price() {
		return buy1Price;
	}


	public void setBuy1Price(double buy1Price) {
		this.buy1Price = buy1Price;
	}


	public double getBuy2Quantity() {
		return buy2Quantity;
	}


	public void setBuy2Quantity(double buy2Quantity) {
		this.buy2Quantity = buy2Quantity;
	}


	public double getBuy2Price() {
		return buy2Price;
	}


	public void setBuy2Price(double buy2Price) {
		this.buy2Price = buy2Price;
	}


	public double getBuy3Quantity() {
		return buy3Quantity;
	}


	public void setBuy3Quantity(double buy3Quantity) {
		this.buy3Quantity = buy3Quantity;
	}


	public double getBuy3Price() {
		return buy3Price;
	}


	public void setBuy3Price(double buy3Price) {
		this.buy3Price = buy3Price;
	}


	public double getBuy4Quantity() {
		return buy4Quantity;
	}


	public void setBuy4Quantity(double buy4Quantity) {
		this.buy4Quantity = buy4Quantity;
	}


	public double getBuy4Price() {
		return buy4Price;
	}


	public void setBuy4Price(double buy4Price) {
		this.buy4Price = buy4Price;
	}


	public double getBuy5Quantity() {
		return buy5Quantity;
	}


	public void setBuy5Quantity(double buy5Quantity) {
		this.buy5Quantity = buy5Quantity;
	}


	public double getBuy5Price() {
		return buy5Price;
	}


	public void setBuy5Price(double buy5Price) {
		this.buy5Price = buy5Price;
	}


	public double getSale1Quantity() {
		return sale1Quantity;
	}


	public void setSale1Quantity(double sale1Quantity) {
		this.sale1Quantity = sale1Quantity;
	}


	public double getSale1Price() {
		return sale1Price;
	}


	public void setSale1Price(double sale1Price) {
		this.sale1Price = sale1Price;
	}


	public double getSale2Quantity() {
		return sale2Quantity;
	}


	public void setSale2Quantity(double sale2Quantity) {
		this.sale2Quantity = sale2Quantity;
	}


	public double getSale2Price() {
		return sale2Price;
	}


	public void setSale2Price(double sale2Price) {
		this.sale2Price = sale2Price;
	}


	public double getSale3Quantity() {
		return sale3Quantity;
	}


	public void setSale3Quantity(double sale3Quantity) {
		this.sale3Quantity = sale3Quantity;
	}


	public double getSale3Price() {
		return sale3Price;
	}


	public void setSale3Price(double sale3Price) {
		this.sale3Price = sale3Price;
	}


	public double getSale4Quantity() {
		return sale4Quantity;
	}


	public void setSale4Quantity(double sale4Quantity) {
		this.sale4Quantity = sale4Quantity;
	}


	public double getSale4Price() {
		return sale4Price;
	}


	public void setSale4Price(double sale4Price) {
		this.sale4Price = sale4Price;
	}


	public double getSale5Quantity() {
		return sale5Quantity;
	}


	public void setSale5Quantity(double sale5Quantity) {
		this.sale5Quantity = sale5Quantity;
	}


	public double getSale5Price() {
		return sale5Price;
	}


	public void setSale5Price(double sale5Price) {
		this.sale5Price = sale5Price;
	}


	public String getDate() {
		return date;
	}


	public void setDate(String date) {
		this.date = date;
	}


	public String getTime() {
		return time;
	}


	public void setTime(String time) {
		this.time = time;
	}


	public Date getTradeDate() {
		return tradeDate;
	}


	public void setTradeDate(Date tradeDate) {
		this.tradeDate = tradeDate;
	}


	public static final Date formatDateTimeStamp(String dateStr, String dateFormate) throws ParseException
	    {
		   SimpleDateFormat sdf = new SimpleDateFormat(dateFormate);
		   Date date = sdf.parse(dateStr);
		   return date;

	    }
	
	
	

}
